curPath         = mfilename('fullpath');
pathIndex       = strfind(curPath,'/');
parentpath      = extractBefore(curPath,pathIndex(end));%end:1stpath,end-1:2ndpath,end-2:3rdpath
cd(parentpath);

addpath(genpath(parentpath));

caseNameList = {
    % 'ekf_case001';
    'ekf_case002';
};

caseNum = length(caseNameList);
for caseIdx = 1:caseNum
    caseName = string(caseNameList(caseIdx));
    if 2 == exist(strcat(caseName,'.m'),'file')
        disp(caseName+' is running!');
    end
    casefunc = str2func(caseName);
    caseCfg = casefunc();
    caseCfg.parentpath = parentpath;
    caseCfg.caseName = caseName;
    ekf_test(caseCfg);
end